## Script (Python) "savebook"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind state=state
##bind subpath=traverse_subpath
##parameters=
##title=
##
from Products.Archetypes import PloneMessageFactory as _
from Products.Archetypes.utils import addStatusMessage

request = context.REQUEST
context.setPress(request.press)
context.setDescription( request.description )
context.setKeywords(request.keywords)
context.setPrice(request.price)
isinsite = request.get('isinsite')
if not isinsite :
    isinsite = 'False'
context.setIsinsite(isinsite)

context.reindexObject()

message = _(u'Changes saved.')
addStatusMessage(request, message)

context.plone_utils.addPortalMessage(message)
return state.set(status='success')
